<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    // let i =1
    // while (i < 10){
    //     console.log(i + "好学习，天天向上！")
    //     i++
    // }
    let i = 1;
    let sum = 0;
    do{
        sum += i;

        i++;
    }while (i <= 100)
    console.log(sum);

</script>
</body>
</html>